<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>overflow on subsequent bodys should not propagate to the viewport</title>
  <style>
   html { overflow:visible; }
   #test { display:block; overflow:scroll; width:10em; height:10em; border:thin solid; }
   body { color:navy; }
  </style>
  <script>
   window.onload = function() {
     var newElm = document.getElementsByTagName("body")[0].cloneNode(false);
     newElm.id = "test";
     document.documentElement.appendChild(newElm);
     document.getElementsByTagName("p")[0].firstChild.data = "There should be scrollbars for the box below -- not for the viewport.";
   }
  </script>
 </head>
 <body>
  <p>FAIL (script didn't run)</p>
 </body>
</html>